<?php
/**
 * TestGuest Version1.0
 * ================================================
 * Copy 2017-2018 zxj
 * Web: http://www.zhaoxiaojie.club
 * ================================================
 * Author: Zxj
 * Date: 17/8/9
 * Time: 下午6:31
 * 检测session防止用户翻墙
 */
session_start();
if(!isset($_SESSION['adminuser'])){
    echo "<script type='text/javascript'>alert('用户尚未登录!');window.location.href='login.php';</script>";
    exit();
}
?>